package cn.yujiago.miaosha.service;

import cn.yujiago.miaosha.dto.GoodsDTO;
import cn.yujiago.miaosha.entity.MiaoshaOrder;
import cn.yujiago.miaosha.entity.Order;

public interface OrderService {

    Order getOrderById(Long orderId);

    MiaoshaOrder getMiaoshaOrderByUserIdGoodsId(Long userId, Long goodsId);

    // 生成订单和秒杀订单
    Order createOrder(Long userId, GoodsDTO goods);
}
